package com.jinpin.oauth.mapper;

import com.jinpin.oauth.entity.Permission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.jinpin.oauth.entity.dto.PermissionDto;

import java.util.List;

/**
* @author JP0020
* @description 针对表【sys_permission(权限表)】的数据库操作Mapper
* @createDate 2023-02-15 09:18:30
* @Entity com.jinpin.oauth.entity.Permission
*/
public interface PermissionMapper extends BaseMapper<Permission> {

    List<Permission> getListByRid(Integer roleId);

    List<PermissionDto> getPermissionAndRole();
}




